package only.my.railgunys.weapon;

import only.my.railgunys.bean.Character;
import only.my.railgunys.bean.Weapon;

/**
 * 匣里灭辰
 */
public class DragonsBane extends Weapon {
    public DragonsBane(int refineLevel){
        this.atk = 454.0;
        this.subStatValue = 221.0;
        this.refineLevel = refineLevel;
        this.name = "匣里灭辰";
        this.code = 18;
    }

    @Override
    public Character subStatEnhance(Character character) {
        character.addMastery(subStatValue.intValue());
        return character;
    }

    @Override
    public Character specialAbility(Character character) {
        character.addIncrease(20.0+4*(refineLevel-1));
        return character;
    }
}
